import styles from './home.less';
import Child from './child';
import AppContext from './context';
import { useState } from 'react';
export default function Home() {
  // 使用hooks
  const [count, setCount] = useState('祖先数据');

  return (
    <AppContext.Provider value={{count,setCount}}>
      <div className={styles.title}>
        home页面
        <h3>父组件</h3>
        <Child></Child>
      </div>
    </AppContext.Provider>
  );
}
